onComplete: function() {
Mainloop.idle_add(Lang.bind(this, function() {
this._greeter.call_start_session_when_ready_sync(serviceName, true, null);
- return false;
+ return GLib.SOURCE_REMOVE;
}));
},
onCompleteScope: this });
function() {
this._timedLoginAnimationTime -= _TIMED_LOGIN_IDLE_THRESHOLD;
hold.release();
+ return GLib.SOURCE_REMOVE;
});
return hold;
},
Lang.bind(this, function() {
this._messageQueueTimeoutId = 0;
this._queueMessageTimeout();
+ return GLib.SOURCE_REMOVE;
}));
},
const Clutter = imports.gi.Clutter;
const Gio = imports.gi.Gio;
+const GLib = imports.gi.GLib;
const Lang = imports.lang;
const Mainloop = imports.mainloop;
const Meta = imports.gi.Meta;
this._createThumbnails();
this._thumbnailTimeoutId = 0;
this._thumbnailsFocused = false;
- return false;
+ return GLib.SOURCE_REMOVE;
},
_destroyThumbnails : function() {
Lang.bind(this, function () {
this._enterItem(index);
this._mouseTimeOutId = 0;
- return false;
+ return GLib.SOURCE_REMOVE;
}));
} else
this._itemEntered(index);
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
+const GLib = imports.gi.GLib;
const Lang = imports.lang;
const Mainloop = imports.mainloop;
const St = imports.gi.St;
_update: function() {
this._showFrame(this._frame + 1);
- return true;
+ return GLib.SOURCE_CONTINUE;
},
_animationsLoaded: function() {
Lang.bind(this, function() {
this._menuTimeoutId = 0;
this.popupMenu();
- return false;
+ return GLib.SOURCE_REMOVE;
}));
} else if (button == 3) {
this.popupMenu();
if (params.onLoaded) {
GLib.idle_add(GLib.PRIORITY_DEFAULT, Lang.bind(this, function() {
params.onLoaded(this._animation);
+ return GLib.SOURCE_REMOVE;
}));
}
}
if (params.onLoaded) {
GLib.idle_add(GLib.PRIORITY_DEFAULT, Lang.bind(this, function() {
params.onLoaded(this._animation);
+ return GLib.SOURCE_REMOVE;
}));
}
}));
GLib.idle_add(GLib.PRIORITY_DEFAULT, Lang.bind(this, function() {
this.emit('loaded');
- return false;
+ return GLib.SOURCE_REMOVE;
}));
},
Lang.bind(this, function() {
this._updateAnimationTimeoutId = 0;
this._updateAnimation();
- return false;
+ return GLib.SOURCE_REMOVE;
}));
},
}));
this._mountAllId = 0;
- return false;
+ return GLib.SOURCE_REMOVE;
},
_onDriveConnected: function() {
_allowAutorunExpire: function(volume) {
Mainloop.timeout_add_seconds(AUTORUN_EXPIRE_TIMEOUT_SECS, function() {
volume.allowAutorun = false;
- return false;
+ return GLib.SOURCE_REMOVE;
});
}
});
this._notifyTimeoutId = 0;
- return false;
+ return GLib.SOURCE_REMOVE;
},
// This is called for both messages we send from
this._filterMessages();
- return false;
+ return GLib.SOURCE_REMOVE;
},
appendAliasChange: function(oldAlias, newAlias) {
this.source.setChatState(Tp.ChannelChatState.PAUSED);
- return false;
+ return GLib.SOURCE_REMOVE;
},
_onEntryChanged: function() {
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
const Clutter = imports.gi.Clutter;
+const GLib = imports.gi.GLib;
const Signals = imports.signals;
const Lang = imports.lang;
const Meta = imports.gi.Meta;
this._labelShowing = true;
item.showLabel();
this._showLabelTimeoutId = 0;
- return false;
+ return GLib.SOURCE_REMOVE;
}));
if (this._resetHoverTimeoutId > 0) {
Mainloop.source_remove(this._resetHoverTimeoutId);
Lang.bind(this, function() {
this._labelShowing = false;
this._resetHoverTimeoutId = 0;
- return false;
+ return GLib.SOURCE_REMOVE;
}));
}
}
let result = motionFunc(dragEvent);
if (result != DragMotionResult.CONTINUE) {
global.screen.set_cursor(DRAG_CURSOR_MAP[result]);
- return false;
+ return GLib.SOURCE_REMOVE;
}
}
}
0);
if (result != DragMotionResult.CONTINUE) {
global.screen.set_cursor(DRAG_CURSOR_MAP[result]);
- return false;
+ return GLib.SOURCE_REMOVE;
}
}
target = target.get_parent();
}
global.screen.set_cursor(Meta.Cursor.DND_IN_DRAG);
- return false;
+ return GLib.SOURCE_REMOVE;
},
_queueUpdateDragHover: function() {
this._secondsLeft = this._totalSecondsToStayOpen - secondsElapsed;
if (this._secondsLeft > 0) {
this._sync();
- return true;
+ return GLib.SOURCE_CONTINUE;
}
let dialogContent = DialogContent[this._type];
this._confirm(button.signal);
this._timerId = 0;
- return false;
+ return GLib.SOURCE_REMOVE;
}));
},
if (!this._showIdleId)
this._showIdleId = GLib.idle_add(GLib.PRIORITY_DEFAULT_IDLE,
- Lang.bind(this, function() { this.Show(time); }));
+ Lang.bind(this, function() {
+ this.Show(time);
+ return GLib.SOURCE_REMOVE;
+ }));
},
_createLayersForGroup: function (gname) {
Lang.bind(this, function() {
this._clearKeyboardRestTimer();
this._show(monitor);
+ return GLib.SOURCE_REMOVE;
}));
},
Lang.bind(this, function() {
this._clearKeyboardRestTimer();
this._hide();
+ return GLib.SOURCE_REMOVE;
}));
},
// when the system is bogged down
GLib.idle_add(GLib.PRIORITY_LOW, Lang.bind(this, function() {
this._startupAnimation();
- return false;
+ return GLib.SOURCE_REMOVE;
}));
},
workspace.set_builtin_struts(struts);
}
- return false;
+ return GLib.SOURCE_REMOVE;
}
});
Signals.addSignalMethods(LayoutManager.prototype);
this._timeoutId = Mainloop.timeout_add(500, Lang.bind(this, function () {
gcIcon.icon_name = 'gnome-fs-trash-full';
Mainloop.source_remove(this._timeoutId);
+ return GLib.SOURCE_REMOVE;
}));
}));
_deferredTimeoutId = Mainloop.timeout_add_seconds(DEFERRED_TIMEOUT_SECONDS, function () {
_runAllDeferredWork();
_deferredTimeoutId = 0;
- return false;
+ return GLib.SOURCE_REMOVE;
});
}
}
this._trayDwellTimeoutId = 0;
if (Main.layoutManager.bottomMonitor.inFullscreen)
- return false;
+ return GLib.SOURCE_REMOVE;
// We don't want to open the tray when a modal dialog
// is up, so we check the modal count for that. When we are in the
// overview we have to take the overview's modal push into account
if (Main.modalCount > (Main.overview.visible ? 1 : 0))
- return false;
+ return GLib.SOURCE_REMOVE;
// If the user interacted with the focus window since we started the tray
// dwell (by clicking or typing), don't activate the message tray
let focusWindow = global.display.focus_window;
let currentUserTime = focusWindow ? focusWindow.user_time : 0;
if (currentUserTime != this._trayDwellUserTime)
- return false;
+ return GLib.SOURCE_REMOVE;
this.openTray();
- return false;
+ return GLib.SOURCE_REMOVE;
},
_onNotificationKeyRelease: function(actor, event) {
this._updateNotificationTimeout(0);
this._updateState();
}
- return false;
+ return GLib.SOURCE_REMOVE;
},
_escapeTray: function() {
this._lastSeenMouseX = x;
this._lastSeenMouseY = y;
- return false;
+ return GLib.SOURCE_REMOVE;
},
_hideNotification: function(animate) {
Mainloop.idle_add(Lang.bind(this,
function () {
this._emitNotificationClosed(id, NotificationClosedReason.DISMISSED);
- return false;
+ return GLib.SOURCE_REMOVE;
}));
return invocation.return_value(GLib.Variant.new('(u)', [id]));
}
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
const Clutter = imports.gi.Clutter;
+const GLib = imports.gi.GLib;
const St = imports.gi.St;
const Lang = imports.lang;
Meta.enable_unredirect_for_screen(global.screen);
})
});
+ return GLib.SOURCE_REMOVE;
},
_reset: function() {
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
const Clutter = imports.gi.Clutter;
+const GLib = imports.gi.GLib;
const Gtk = imports.gi.Gtk;
const Meta = imports.gi.Meta;
const Mainloop = imports.mainloop;
this._windowSwitchTimestamp);
this.hide();
this._lastHoveredWindow = null;
- return false;
+ return GLib.SOURCE_REMOVE;
}));
}
Mainloop.source_remove(this._xdndTimeOut);
this._xdndTimeOut = 0;
+ return GLib.SOURCE_REMOVE;
}
});
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
+const GLib = imports.gi.GLib;
const Lang = imports.lang;
const Mainloop = imports.mainloop;
const Meta = imports.gi.Meta;
_onTimeout: function() {
this._updatePointer();
- return true;
+ return GLib.SOURCE_CONTINUE;
},
_updatePointer: function() {
});
}
- return true;
+ return GLib.SOURCE_CONTINUE;
},
_onDragBegin: function() {
Lang.bind(this, function() {
this._lockTimeoutId = 0;
this.lock(false);
- return false;
+ return GLib.SOURCE_REMOVE;
}));
}
Mainloop.timeout_add(1000 * MANUAL_FADE_TIME, Lang.bind(this, function() {
this._activateFade(this._shortLightbox, MANUAL_FADE_TIME);
+ return GLib.SOURCE_REMOVE;
}));
} else {
if (params.fadeToBlack)
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
const Gio = imports.gi.Gio;
+const GLib = imports.gi.GLib;
const Mainloop = imports.mainloop;
const Meta = imports.gi.Meta;
const Shell = imports.gi.Shell;
Mainloop.timeout_add(milliseconds, function() {
if (cb)
cb();
- return false;
+ return GLib.SOURCE_REMOVE;
});
return function(callback) {
const Clutter = imports.gi.Clutter;
const Gio = imports.gi.Gio;
+const GLib = imports.gi.GLib;
const Lang = imports.lang;
const Mainloop = imports.mainloop;
const St = imports.gi.St;
this.actor.visible = alwaysShow || items.some(function(f) { return !!f.state; });
- return false;
+ return GLib.SOURCE_REMOVE;
},
_queueSyncMenuVisibility: function() {
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
const Clutter = imports.gi.Clutter;
+const GLib = imports.gi.GLib;
const Gtk = imports.gi.Gtk;
const Lang = imports.lang;
const Mainloop = imports.mainloop;
Main.osdWindow.cancel();
this.actor.opacity = 255;
this._initialDelayTimeoutId = 0;
+ return GLib.SOURCE_REMOVE;
}));
return true;
},
_mouseTimedOut: function() {
this._motionTimeoutId = 0;
this.mouseActive = true;
+ return GLib.SOURCE_REMOVE;
},
_popModal: function() {
const Clutter = imports.gi.Clutter;
const Gio = imports.gi.Gio;
+const GLib = imports.gi.GLib;
const Gtk = imports.gi.Gtk;
const Mainloop = imports.mainloop;
const Meta = imports.gi.Meta;
this._searchResults.setTerms(terms);
this._showPage(this._searchPage);
+
+ return GLib.SOURCE_REMOVE;
},
getActivePage: function() {
/* mutter already takes care of failing at timeout */
this._timeoutId = 0;
this.close();
- return false;
+ return GLib.SOURCE_REMOVE;
}
this._descriptionLabel.text = this._formatCountDown();
- return true;
+ return GLib.SOURCE_CONTINUE;
},
_onFailure: function() {
workspace._keepAliveId = Mainloop.timeout_add(duration, Lang.bind(this, function() {
workspace._keepAliveId = 0;
this._queueCheckWorkspaces();
- return false;
+ return GLib.SOURCE_REMOVE;
}));
},
workspace._lastRemovedWindow = null;
this._queueCheckWorkspaces();
}
- return false;
+ return GLib.SOURCE_REMOVE;
}));
},
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
const Clutter = imports.gi.Clutter;
+const GLib = imports.gi.GLib;
const Lang = imports.lang;
const Mainloop = imports.mainloop;
const Meta = imports.gi.Meta;
Mainloop.idle_add(Lang.bind(this,
function() {
this._windowClone.emit('selected');
- return false;
+ return GLib.SOURCE_REMOVE;
}));
}
},
!this.closeButton.has_pointer)
this._animateInvisible();
- return false;
+ return GLib.SOURCE_REMOVE;
},
hideCloseButton: function() {
// store current cursor position
this._cursorX = x;
this._cursorY = y;
- return true;
+ return GLib.SOURCE_CONTINUE;
}
let actorUnderPointer = global.stage.get_actor_at_pos(Clutter.PickMode.REACTIVE, x, y);
for (let i = 0; i < this._windows.length; i++) {
if (this._windows[i].actor == actorUnderPointer)
- return true;
+ return GLib.SOURCE_CONTINUE;
}
this._recalculateWindowPositions(WindowPositionFlags.ANIMATE);
this._repositionWindowsId = 0;
- return false;
+ return GLib.SOURCE_REMOVE;
},
_doRemoveWindow : function(metaWin) {
metaWin.get_compositor_private() &&
metaWin.get_workspace() == this.metaWorkspace)
this._doAddWindow(metaWin);
- return false;
+ return GLib.SOURCE_REMOVE;
}));
return;
}
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
const Clutter = imports.gi.Clutter;
+const GLib = imports.gi.GLib;
const Lang = imports.lang;
const Mainloop = imports.mainloop;
const Meta = imports.gi.Meta;
onComplete: function() { this.destroy(); },
onCompleteScope: this
});
+ return GLib.SOURCE_REMOVE;
},
destroy: function() {
const Clutter = imports.gi.Clutter;
const Gio = imports.gi.Gio;
+const GLib = imports.gi.GLib;
const Lang = imports.lang;
const Mainloop = imports.mainloop;
const Meta = imports.gi.Meta;
metaWin.get_compositor_private() &&
metaWin.get_workspace() == this.metaWorkspace)
this._doAddWindow(metaWin);
- return false;
+ return GLib.SOURCE_REMOVE;
}));
return;
}